import java.util.Scanner;

public class CompanyTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Company person= new Company();
        person.name = "王老五的公司";
        person.ip = "合肥";
        person.phone = "110120";
        int num = 0;

        while (true) {
            System.out.println("1：添加招聘员工；2：显示员工信息；3：辞退员工；");
            num = scanner.nextInt();
            if (num == 1) {
                System.out.println("输入招聘员工：");
            }else if(num==2){
                person.show();
            }else if (num==3){
                System.out.println("解雇人姓名");
                String name=scanner.next();
                person.s(name);
            } else {
                System.out.println("没有信息");
            }
        }
    }
}